import request from '@/utils/request'

// 查询装备购买出售记录列表
export function listGuns_log(query) {
  return request({
    url: '/admin/guns_log/list',
    method: 'get',
    params: query
  })
}

// 查询装备购买出售记录详细
export function getGuns_log(id) {
  return request({
    url: '/admin/guns_log/' + id,
    method: 'get'
  })
}

// 新增装备购买出售记录
export function addGuns_log(data) {
  return request({
    url: '/admin/guns_log',
    method: 'post',
    data: data
  })
}

// 修改装备购买出售记录
export function updateGuns_log(data) {
  return request({
    url: '/admin/guns_log',
    method: 'put',
    data: data
  })
}

// 删除装备购买出售记录
export function delGuns_log(id) {
  return request({
    url: '/admin/guns_log/' + id,
    method: 'delete'
  })
}

// 导出装备购买出售记录
export function exportGuns_log(query) {
  return request({
    url: '/admin/guns_log/export',
    method: 'get',
    params: query
  })
}
